package com.zb.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author WEN
 * @Date 2023/12/29 0029
 **/
@Data
@ApiModel("返厂地址库对象")
public class RepairAddrStoreVo {
    @ApiModelProperty(value = "地址库ID，新增不必传，修改必传")
    private Long id;

    @ApiModelProperty(value = "姓名", required = true)
    private String username;

    @ApiModelProperty(value = "手机号", required = true)
    private String phone;

    @NotBlank(message = "地址-省不能为空")
    @Length(max = 50, message = "地址-镇长度限制 50 个字符以内")
    @ApiModelProperty(value = "地址-省", required = true)
    private String province;

    @NotBlank(message = "地址-市不能为空")
    @Length(max = 50, message = "地址-镇长度限制 50 个字符以内")
    @ApiModelProperty(value = "地址-市", required = true)
    private String city;

    @NotBlank(message = "地址-镇不能为空")
    @Length(max = 50, message = "地址-镇长度限制 50 个字符以内")
    @ApiModelProperty(value = "地址-区", required = true)
    private String area;

    @Length(max = 50, message = "地址-镇长度限制 50 个字符以内")
    @ApiModelProperty(value = "地址-镇")
    private String town;

    @NotBlank(message = "详细地址不能为空")
    @Length(max = 200, message = "详细地址长度限制 200 个字符以内")
    @ApiModelProperty(value = "地址-详细地址", required = true)
    private String address;

    @ApiModelProperty(value = "是否默认为收货地址：0-否，1-是", required = true, example = "false")
    private Boolean defaultAddr;

    @ApiModelProperty(value = "地址库状态：false-启用，true-禁用", required = true, example = "false")
    private Boolean disabled;
}
